/*****************************************************************
 MYD Engine v0.1

 File: myd_shape.h
 Created: 14/06/09
*****************************************************************/

//----------------------------------------------------------------
#ifndef MYD_SHAPE_H
#define MYD_SHAPE_H
//----------------------------------------------------------------

#include "system/myd_system.h"
#include "myd_entity.h"
#include "graphics/graphicsstructs.h"

namespace myd
{
	class Renderer;
	
	class MYD_API Shape : public Entity{
	
	public:
		enum shapeType
		{
			TRIANGLE,
			SQUARE
		};

		enum shapeColor
		{
			BLUE,
			GREEN,
			RED,
			YELLOW
		};

		//constructor & destructor
		Shape(shapeType name, shapeColor color);
		~Shape(void){};
		
		void draw(Renderer& rkRenderer) const;

	private:
		//"topology"
		ColorVertex m_akVertices[4];

		//collision from Entity
	public:
		void onCollide(Entity *pkEntity){setSpeed(0);}
	};
}//end namespace
#endif //MYD_SHAPE_H